/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upf.grupE;

import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.filter.PacketFilter;

/*Son todas las operaciones que se pueden hacer con el
sistema de mensajeria (login, logout, escuchar peticiones, buscar contenido,
coger contenido)/*
/**
 *
 * @author xday666
 */
/**
 *
 * @author Madhava Carrillo
 */
public interface InstantMessage {

    /**
     * Method login returns a boolean.
     * @param user String user
     * @param pass String pass
     * @param resource String resource
     * @return boolean this method returns a boolean
     */
    boolean login(String user, String pass, String resource);

    /**
     * Method logout disconnect the connection.
     *
     */
    void logout();

    /**
     * Method addListener.
     * @param listener Listener listener
     * @param connection XMPPConnection connection
     * @param filter PacketFilter filter
     */
    void addListener(Listener listener, XMPPConnection connection, PacketFilter filter);

}
